package test2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import test2.controller.UserController;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("test2");
        UserController controller = context.getBean(UserController.class);
        controller.start();
    }
}
